package com.zsck.zsgy.ui.auth

import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.viewModelScope
import com.zsck.zsgy.base.BaseViewModel
import com.zsck.zsgy.ui.auth.bean.AuthBean

class AuthViewModel : BaseViewModel() {

    private val repo by lazy { AuthRepo(viewModelScope, errorLiveData) }

    val loginLiveData = MutableLiveData<AuthBean>()

    fun login(verificationCode:String,phoneNumber:String,registrationId:String) {

        repo.auth(verificationCode, phoneNumber,
            registrationId,loginLiveData)

    }





}